<?php
/**
 * Enter description here ...
 * @author Micou13630
 *
 */
class SliderItem extends CanvasItem implements IRenderable {
	
	protected $changeOnDrag;
	
	protected $defaultValue;
	protected $maxValue;
	protected $minValue;
	protected $numValues;
	protected $roundPrecision;
	protected $roundValues;
	
	protected $sliderProperties;
	
	protected $vertical;
	
	public function SliderItem($name, $min = 1, $max = 10, $numValues = 10) {
		parent::CanvasItem ($name, Constant::EDITOR_TYPE_SLIDER);
		
		$this->minValue = $min;
		$this->maxValue = $max;
		$this->numValues = $numValues;
	}
	
	/**
	 * Implementation de object
	 * @see IRenderable::object()
	 */
	public function object() {
		return get_class($this);
	}

	/**
	 * Implementation de properties
	 * @see IRenderable::properties()
	 */
	public function properties() {
		return parent::getProp($this);
	}
	
	/**
	 * Implementation de scLog
	 * @see IRenderable::scLog()
	 */
	public function scLog() {
		ScCollectionLog::getInstance()->addSc(new ScLog($this->object(), get_object_vars($this)));
	}

	/**
	 * Implementation de render
	 * @see IScreen::render()
	 */
	public function render() {
		$this->scLog();
		return "{".$this->properties()."}";
	}
	
}